package com.dsjy.yf.address.entity.query;

import lombok.Data;

/**
 * @author whj
 * @version 1.0
 * @date 2021-03-09 16:43
 */
@Data
public class PageSearchQuery {
    private Integer pageNum;
    private Integer pageSize;
    private String tableName;
    private String query;

    public boolean queryIsNull() {
        return query == null || "null".equals(query);
    }

    public boolean isNotNull() {
        return pageNum != null && pageSize != null && tableName != null;
    }

}
